package com.neusoft.mapper;

import com.neusoft.domain.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodDao {
    @Select("select * from food where businessId = #{businessId} and status = 0")
    List<Food> listFoodByBusinessId(Integer businessId);

    @Select("select * from food where foodId = #{foodId}")
    Food getFoodById(Integer foodId);
}
